package com.jic.point.mapper;

import com.jic.point.model.entity.ConfPointCardBatch;
import com.jic.point.model.vo.request.ConfPointCardBatchRequest;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface ConfPointCardBatchMapper {
	/**
	 * CONF_POINT_CARD_APPLY插入数据
	 * @param confPointCardBatch 入参实体类
	 */
	int insert(ConfPointCardBatch confPointCardBatch);

	/**
	 * CONF_POINT_CARD_APPLY插入数据
	 * @param confPointCardBatch 入参实体类
	 */
	int insertSelective(ConfPointCardBatch confPointCardBatch);

	/**
	 * CONF_POINT_CARD_APPLY根据表对象数据修改数据
	 * @param confPointCardBatch 入参实体类
	 */
	int updateByPrimaryKey(ConfPointCardBatch confPointCardBatch);

	/**
	 * CONF_POINT_CARD_APPLY根据表对象数据修改数据
	 * @param confPointCardBatch 入参实体类
	 */
	int updateByPrimaryKeySelective(ConfPointCardBatch confPointCardBatch);

	/**
	 * CONF_POINT_CARD_APPLY根据id删除数据
	 * @param confPointCardBatch 入参实体类
	 */
	int deleteByPrimaryKey(ConfPointCardBatch confPointCardBatch);

	/**
	 * CONF_POINT_CARD_APPLY根据主键查询数据
	 * @param confPointCardBatch 入参实体类
	 */
	ConfPointCardBatch selectByPrimaryKey(ConfPointCardBatch confPointCardBatch);

	/**
	 * CONF_POINT_CARD_APPLY根据主键查询数据
	 * @param confPointCardBatch 入参实体类
	 */
	List<ConfPointCardBatch> listPageBySelective(ConfPointCardBatchRequest confPointCardBatch);

	/**
	 * CONF_POINT_CARD_APPLY查询数据
	 * @param confPointCardBatch 入参实体类
	 */
	List<ConfPointCardBatch>  selectBySelective(ConfPointCardBatch confPointCardBatch);

	Integer releasePointCart(@Param("list") List<String> releaseBatch);

	String getPlatformCode(@Param("code") String item);

    ConfPointCardBatch selectByPrimaryCode(ConfPointCardBatch batch);

	BigDecimal releasePointCartTotalPoint(String item);

	Integer updateByPrimaryCode(@Param("log") ConfPointCardBatch bigDecimal);

    Integer updateByPrimaryId(ConfPointCardBatch updateBatch);

    List<ConfPointCardBatch> count();
}
